package pl.ydp.utils.validators
{
	public function hasFunction( object:Object, funcName:String ):Boolean
	{
		var objectHasFunction:Boolean = ( 
			object != null &&
			object.hasOwnProperty( funcName ) && 
			object[ funcName ] is Function 
		);
		return objectHasFunction;
	}	
}